package com.flurry.android;

import android.content.Context;
import com.flurry.android.caching.ObjectData;
import java.util.Vector;
import org.apache.http.NameValuePair;

final class az extends dr
{
  public az(Context paramContext, String paramString)
  {
    this.fB = new CacheDBServerOperations(paramContext, paramString);
  }

  public final void a(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5)
  {
    bm localbm = new bm(paramString1, paramString2, paramString3, paramString4, paramString5);
    if (!this.fB.hasKeyValueObject(localbm))
    {
      this.fB.addItem(localbm);
      b(paramString3, paramString1, paramString2);
      AppCloudSearch.onMakeSearchNotValidForCollection(paramString5);
      return;
    }
    ObjectData localObjectData = getObjectById(paramString3);
    for (int i = 0; i < localObjectData.getKeyValuesListSize(); i++)
      if ((((NameValuePair)localObjectData.getKeyValues().get(i)).getName().equals(paramString1)) && (!((NameValuePair)localObjectData.getKeyValues().get(i)).getValue().equals(paramString2)))
      {
        b(paramString3, paramString1, paramString2);
        AppCloudSearch.onMakeSearchNotValidForCollection(paramString5);
      }
    this.fB.updateItem(paramString1, paramString2, paramString3, paramString5);
  }

  public final boolean b(String paramString1, String paramString2, String paramString3, String paramString4)
  {
    if (!paramString2.equals(this.fB.getValueByKey(paramString1, paramString3, paramString4)))
    {
      b(paramString3, paramString1, paramString2);
      this.fB.updateItem(paramString1, paramString2, paramString3, paramString4);
      return true;
    }
    return false;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.az
 * JD-Core Version:    0.6.2
 */